package com.tensquare.spit.dao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @description
 * @author: xu1
 **/
public interface SpitDao extends MongoRepository<Spit,String> {
    //spring data 系列的  分页 都可以这样
    public Page<Spit> findByParentid(String parentid,Pageable pageable);
}
